package ch07;

class _16_BindingTest3 {
	public static void main(String[] args) {
		Parent14 p = new Child16();
		Child16 c = new Child16();

		System.out.println("p.x = " + p.x);
		p.method();
		System.out.println();
		System.out.println("c.x = " + c.x);
		c.method();
	}
}

class Child16 extends Parent14 {
	int x = 200;

	void method() {
		System.out.println("x=" + x);
		System.out.println("super.x=" + super.x);
		System.out.println("this.x=" + this.x);
	}
}
/*
p.x = 100
x=200
super.x=100
this.x=200

c.x = 200
x=200
super.x=100
this.x=200
*/